home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The 640 MEG Shareware Studio 2
/
The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO
/
comm
/
combt102.zip
/
SAMPLE.BAT
< prev
Wrap
DOS Batch File
|
1992-01-05
|
977b
|
67 lines
echo off
rem
rem
rem SAMPLE BATCH FILE USING 'COMMBAT' UTILITY
rem
rem
rem Set port to 9600 baud, 7 data bits, even parity, 10 sec timeout
set _config=10,96,e,7,1
rem Send [CR]
set _send=\r
rem Trigger 1 - 4
set _trig1=BBC,XYZ,10
set _trig2=BUG\g,,5
set _trig3=BC,QQQ
set _trig4=ABC,XYZ,10
commbat /ob /r
if errorlevel 9 goto l9
if errorlevel 8 goto l8
if errorlevel 7 goto l7
if errorlevel 6 goto l6
if errorlevel 4 goto l4
if errorlevel 3 goto l3
if errorlevel 2 goto l2
if errorlevel 1 goto l1
echo Message sent
goto end
:l9
echo Parameter error
goto end
:l8
echo Receive timeout
goto end
:l7
echo Interrupted by user
goto end
:l6
echo Receive overflow
goto end
:l1
echo Trigger 1 condition matched
goto end
:l2
echo Trigger 2 condition matched
goto end
:l3
echo Trigger 3 condition matched
goto end
:l4
echo Trigger 4 condition matched
goto end
:end